<template>
  <el-button
    type="primary"
    @click="searchForm"
    :class="{isAddWidth: loading}"
    :loading="loading"
  >
    <i class="el-icon-search" :class="{isdisplay: loading}" />
    {{ loading ? '' : '查询' }}
  </el-button>
</template>
<script>
export default {
  name: 'ButtonLoading',
  data() {
    return {}
  },
  props: {
    loading: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    searchForm() {
      this.$emit('searchForm')
    }
  }
}
</script>
<style></style>
